package com.panshi.controller;

import com.panshi.service.ICarouselService;
import com.panshi.tools.Carousel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@ResponseBody
public class CarouselController {

    @Autowired
    private ICarouselService iCarouselService;


    /***
     * 轮播图
     * @return
     */
    @RequestMapping("/lbt/queryCarousel")
    public List queryCarousel(){
        List<Carousel> list =   iCarouselService.queryCarousel();
        return list;
    }

}
